package com.example.project.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.project.entity.Review;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * (Review)表数据库访问层
 *
 * @since 2024-02-28 16:27:36
 */
@Mapper
public interface ReviewMapper extends BaseMapper<Review> {

    @Update("update #{workTable} set state = #{state} where id = {workId}")
    void updateWorkState(String workTable, Long workId, int state);
}

